
function Structure()
{
    var mId = 0;
    var mName = '';
    var mLevel = 0;

    this.getId = function()
    {
        return id;
    }

    this.setId = function(id)
    {
        mId = id;

        return;
    }

    this.getName = function()
    {
        return mName;
    }

    this.setName = function(name)
    {
        mName = name;

        return;
    }

    this.getLevel = function()
    {
        return level;
    }

    this.setLevel = function(level)
    {
        mLevel = level;

        return;
    }
}

StructureView.getUrl = function()
{
        return gServer.getUrl() + '/build.php?id=' + id;
}
